home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
gmn.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
6KB
|
255 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_gamen ;
extern int TIcon_g[4] ;
extern int gamen_mode() ;
extern int Message_gamen ;
extern int Message_32000 ;
extern int Message_32 ;
extern int Message_256 ;
extern int DButton_gamen_on ;
extern int gamen_on() ;
extern int DButton_gamen_off ;
extern int gamen_off() ;
extern int Message_gamen_on ;
extern int Message_gamen_off ;
extern int Message_16 ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataGMN = { "MmiInit", 14, 0 } ;
/* Dialog_gamen */
static MMIPACKET d001 = { &Dialog_gamen,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
7, 32, 237, 225, 9, 7,10,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* TIcon_g[0] */
static MMIPACKET d002 = { &TIcon_g[0],
&Dialog_gamen,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d002d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
18, 61, 35, 78, 7, 7,15,
MS_UFRAMEL40 | MS_FRAMEL40,
gamen_mode,
0x0000, 259, 260
} ;
/* TIcon_g[1] */
static MMIPACKET d003 = { &TIcon_g[1],
&Dialog_gamen,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d003d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
18, 89, 35, 106, 7, 7,15,
MS_UFRAMEL40 | MS_FRAMEL40,
gamen_mode,
0x0000, 259, 260
} ;
/* TIcon_g[2] */
static MMIPACKET d004 = { &TIcon_g[2],
&Dialog_gamen,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d004d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
18, 119, 35, 136, 7, 7,15,
MS_UFRAMEL40 | MS_FRAMEL40,
gamen_mode,
0x0000, 259, 260
} ;
/* Message_gamen */
static MMIPACKET d005 = { &Message_gamen,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
7, 32, 233, 55, 7, 7,12,
MS_NONEL40,
"画面モードの設定",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* Message_32000 */
static MMIPACKET d006 = { &Message_32000,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
39, 59, 233, 82, 0,15, 0,
MS_NONEL40,
"320×240の32000色モード",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* Message_32 */
static MMIPACKET d007 = { &Message_32,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
38, 87, 232, 110, 0,15, 0,
MS_NONEL40,
"512×480の32000色モード",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* Message_256 */
static MMIPACKET d008 = { &Message_256,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
38, 117, 232, 140, 0,15, 0,
MS_NONEL40,
"720×480 の 256色モード",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* DButton_gamen_on */
static MMIPACKET d009 = { &DButton_gamen_on,
&Dialog_gamen,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d009d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
39, 183, 105, 208, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
gamen_on,
0x0000
} ;
/* DButton_gamen_off */
static MMIPACKET d010 = { &DButton_gamen_off,
&Dialog_gamen,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d010d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
137, 184, 212, 209, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
gamen_off,
0x0000
} ;
/* Message_gamen_on */
static MMIPACKET d011 = { &Message_gamen_on,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d011d = { MS_CENTERL40 | MS_DSPONLYL40,
40, 184, 107, 206, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
5, 0
} ;
/* Message_gamen_off */
static MMIPACKET d012 = { &Message_gamen_off,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d012d = { MS_CENTERL40 | MS_DSPONLYL40,
138, 185, 211, 208, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
5, 0
} ;
/* TIcon_g[3] */
static MMIPACKET d013 = { &TIcon_g[3],
&Dialog_gamen,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d013d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
18, 151, 35, 168, 7, 7,15,
MS_UFRAMEL40 | MS_FRAMEL40,
gamen_mode,
0x0000, 259, 260
} ;
/* Message_16 */
static MMIPACKET d014 = { &Message_16,
&Dialog_gamen,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d014d = { MS_CENTERL40 | MS_DSPONLYL40,
38, 148, 232, 171, 0,15, 0,
MS_NONEL40,
"16色モード(ビデオ出力無)",
2, 16, 16,
MS_NONEL40,
0, 0
} ;